package com.tbit.main.pojo;

import lombok.Data;
import lombok.ToString;

import java.util.HashSet;
import java.util.Set;

/**
 * @author LMY
 * @create 2021-08-24 10:26
 */
@Data
@ToString
public class AccountUserWorkConfig {
    /**
     * 区域id
     */
    private Integer accountId;
    /**
     * 运维人员Id
     */
    private Integer accountUserId;
    /**
     * 运维人员姓名
     */
    private String accountUserName;
    /**
     * 工单类型
     */
    private Integer workType;
    private Set<Integer> workTypes;
    /**
     * 上班班次
     */
    private Integer workNumber;
    private Set<Integer> workNumbers;
    /**
     * 开始时间
     */
    private String startTime;
    /**
     * 结束时间
     */
    private String endTime;

    /**
     * 挪车工单类型，0：超区，1：站外
     */
    private Integer locationType;
    private Set<Integer> locationTypes;

    public void addLocationType(Integer locationType) {
        if (locationTypes == null && locationType != null) {
            locationTypes = new HashSet<>();
        }
        if (null != locationType) {
            locationTypes.add(locationType);
        }
    }

}
